package god.services;

import god.interfaces.Account2IService;
import god.model.Account2VO;

public class Account2Service implements Account2IService {

	@Override
	public void getMonthlyInterestRate(Account2VO ac) {
		double mir;
		mir = ac.getInterestRate() / 12;
		ac.setMonthlyInterestRate(mir);
	}

	public void withDraw(Account2VO ac, int amount) {
		int balance;
		balance = ac.getBalance() - amount;
		ac.setBalance(balance);
	}

	@Override
	public void deposit(Account2VO ac, int amount) {
		int balance;
		balance = ac.getBalance() + amount;
		ac.setBalance(balance);
	}
}
